<template>
	<view>
		<view class="detail-page">
			<view class="detail-title">
				{{info.problemName}}
			</view>
			<view class="detail-content">
				{{info.solution}}
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				detailId:'',
				info:{}
			}
		},
		onLoad(options) {
			if(options){
				this.detailId=options.id;
			}
			this.getDetailList();
		},
		methods:{
			getDetailList(){
				uni.$u.http.get(`/system/mobile/sysCommonProblem/getInfo/${this.detailId}`).then(res => {
					console.log('res===>', res)
					if (res.code == 0) {
						this.info=res.data;
					}
				}).catch(err => {})
			}
		}
	}
</script>

<style lang="scss">
	.detail-title{
		font-weight: bold;
	}
	.detail-content{
		color: #8c8c8c;
		padding: 20rpx;
		margin-top: 10rpx;
	}
</style>